#ifndef __IMA_SERVICE_UTILS_H__
#define __IMA_SERVICE_UTILS_H__

#include <stdint.h>
#include <string>

class ImaServiceUtils {
	public:
		static std::string generateTokenId(uint32_t ipAddress);
		static bool isValidEmailAddress(const char *pEmailAddress);

   private:
      static inline bool isCharacter(const char Character) {
         //Checks if a Character is a Valid A-Z, a-z Character, based on the ascii value
         return ((Character >= 'a' && Character <= 'z')
            || (Character >= 'A' && Character <= 'Z'));
      }

      static inline bool isNumber(const char Character) {
         //Checks if a Character is a Valid 0-9 Number, based on the ascii value
         return ( Character >= '0' && Character <= '9');
      }

};

#endif //__IMA_SERVICE_UTILS_H__
